package com.software.myopiaparents.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @警报列表.
 * @time 2020/5/18.
 * @description
 */

public class AlertListInfo implements Serializable {


    /**
     * status : success
     * code : 10000
     * msg : 获取成功
     * time : 1589538335
     * data : {"list":[{"createdate":"2020-05-15 18:25:22","device_code":"123abc","name":"阿萨德","type":2},{"createdate":"2020-05-15 18:25:25","device_code":"123abc","name":"阿萨德","type":1}],"total":2}
     */

    private String status;
    private String code;
    private String msg;
    private long time;
    private DataBean data;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * list : [{"createdate":"2020-05-15 18:25:22","device_code":"123abc","name":"阿萨德","type":2},{"createdate":"2020-05-15 18:25:25","device_code":"123abc","name":"阿萨德","type":1}]
         * total : 2
         */

        private int total;
        private List<ListBean> list;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * createdate : 2020-05-15 18:25:22
             * device_code : 123abc
             * name : 阿萨德
             * type : 2
             */

            private String createdate;
            private String device_code;
            private String name;
            private int type;

            public String getCreatedate() {
                return createdate;
            }

            public void setCreatedate(String createdate) {
                this.createdate = createdate;
            }

            public String getDevice_code() {
                return device_code;
            }

            public void setDevice_code(String device_code) {
                this.device_code = device_code;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }
        }
    }
}
